package com.bit.demo1;

public class TestDemo {
    public static void main(String[] args) {
        Computer computer = new Computer("英特尔", "8G", "三星", "联想");

        // System.out.println(computer.brand);
        // System.out.println(computer.cpu);
        // System.out.println(computer.memory);

        computer.setCpu("16G");
        System.out.println(computer.getCpu());

        computer.setMemory("苹果");
        System.out.println(computer.getMemory());

    }
}
